<!-- /ezadm/template/board/ezbbs_config_list.htm :: 2010-03-03 :: ezdong & hamhaja -->
<script type="text/javascript">
//<![CDATA[
$(function() {
	//폼체크
	var container1 = $("div#lay_error_container1");
	$("form[name=search_form]").validate({
		errorContainer: container1,
		errorLabelContainer: $("ol", container1),
		wrapper: "li"
	});
});

function goto_update(id)
{
	var url = g_arg_url('<?=$g_job?>', 'update_form', id);
	g_open(url, 750, 700);
}

function goto_delete(id)
{
	g_goto_delete('<?=$g_job?>', 'delete', id);
}

function goto_copy(id)
{
	var url = g_arg_url( '<?=$g_job?>', 'copy_form', id);;
	g_open(url, 600, 300);
}

function goto_preview(id)
{
	var url = "/ezbbs/index.php?ebcf_id=" + id;
	window.open(url);
}
//]]>
</script>

<!-- 검색폼 ▼▼▼ -->
<form name="search_form" method="get" action="<?=$_SERVER['PHP_SELF']?>" style="width:400px;float:left;">
<input type="hidden" name="g_job" value="<?=$g_job?>" />
<input type="hidden" name="g_subjob" value="<?=$g_subjob?>" />

	<table class="search_form1">
	<col width='25%' /><col width='40%' /><col width='15%' /><col width='20%' />
	<tr>
		<td><?=$Html->full_select_form('column', array('ebcf_pname' => '게시판명', 'ebcf_id' => '게시판아이디'), $column)?></td>
		<td><input type="text" class="full required" name="keyword" value="<?=$keyword?>" title="검색어를 입력하세요." /></td>
		<td><input type="submit" class="full_button" value="검색" /></td>
		<?php if ($keyword) { ?>
		<td><input type="button" class="full_button" value="전체" onclick="g_goto('<?=$g_job?>', 'list');" /></td>
		<?php } ?>
	</tr>
	</table>

	<div id="lay_error_container1" class="error_container">
		<ol>
			<li>에러 메세지!!</li>
		</ol>
	</div>


</form>
<!-- 검색폼 ▲▲▲ -->

<!-- 페이징 정보 ▼▼▼ -->
<div class="paging_header">
	<?php if ($keyword) { ?> 검색 <span class="current_page"><?=number_format($Paging->get_search_num())?></span> 건 :: <?php } ?>
	전체 <?=number_format($Paging->get_total_num())?> 건 / 현재 <?=number_format($Paging->get_current_page())?> 페이지 ::
	전체 <?=number_format($Paging->get_total_page())?> 페이지
</div>
<!-- 페이징 정보 ▲▲▲ -->

<!-- 게시판 목록 ▼▼▼ -->
<table class="list">
<col width="15%" /><col /><col width="45" /><col width="45" /><col width="45" /><col width="45" /><col width="65" /><col width="65" /><col width="50" /><col width="50" /><col width="50" />
<tr>
	<th rowspan="2">게시판 아이디</th>
	<th rowspan="2">게시판 이름</th>
	<th colspan="4" width="180" style="border-bottom:1px solid white;">주요기능</th>
	<th rowspan="2">게시물수</th>
	<th rowspan="2">등록일</th>
	<th rowspan="2" colspan="3" width="150">관리자툴</th>
</tr>
<tr>
	<th>답글</th>
	<th>댓글</th>
	<th>분류</th>
	<th>파일</th>
</tr>
<?php if (count($ezbbs_list)) { ?>
	<?php foreach ($ezbbs_list as $v) { ?>
	<tr class="list<?=$v['ebcf_use_flag']?>" onmouseover="g_mouse_over(this);" onmouseout="g_mouse_out(this);">
		<td><a href="#" onclick="goto_preview('<?=$v['ebcf_id']?>'); return false;"><?=$v['ebcf_id']?></a></td>
		<td class="flow"><?=$v['ebcf_pname']?></td>
		<td><?php if ($v['ebcf_answer_flag']) { ?><img src="<?=$App->_url_admin?>/icon/check_red.gif" alt="" /><?php } ?></td>
		<td><?php if ($v['ebcf_reply_flag']) { ?><img src="<?=$App->_url_admin?>/icon/check_red.gif" alt="" /><?php } ?></td>
		<td><?php if ($v['ebcf_artcat_flag']) { ?><img src="<?=$App->_url_admin?>/icon/check_red.gif" alt="" /><?php } ?></td>
		<td><?php if ($v['ebcf_file_num']) { ?><img src="<?=$App->_url_admin?>/icon/check_red.gif" alt="" /><?php } ?></td>
		<td><?=number_format($v['article_num'])?></td>
		<td><?=date('Y-m-d', $v['ebcf_ctime'])?></td>
		<td><input class="full_button" type="button" value="설정" onclick="goto_update('<?=$v['ebcf_id']?>'); return false;" /></td>
		<td><input class="full_button" type="button" value="복사" onclick="goto_copy('<?=$v['ebcf_id']?>'); return false;" /></td>
		<td><input class="full_button" type="button" value="삭제" onclick="goto_delete('<?=$v['ebcf_id']?>');" /></td>
	</tr>
	<?php } ?>
<?php } else { ?>
	<tr>
		<td class="empty" colspan="11">등록된 게시판이 없습니다.</td>
	</tr>
<?php } ?>
</table>
<!-- 게시판 목록 ▲▲▲ -->

<br />

<!-- 페이징 시작 ▼▼▼ -->
<table class="list_util">
<tr>
	<td class="center"><?=$Paging->text_default()?></td>
</tr>
</table>
<!-- 페이징 끝 ▲▲▲ -->

<br />

<!-- 게시판 등록 ▼▼▼ -->
<script type="text/javascript">
//<![CDATA[
	$(function() {
		//폼체크
		var container2 = $("div#lay_error_container2");
		$("form[name=insert_form]").validate({
			errorContainer: container2,
			errorLabelContainer: $("ol", container2),
			wrapper: "li",
			rules: {
				ebcf_id: {
					lowernum: true,
					minlength: 2
				}
			}
		});
	});
//]]>
</script>

<form name="insert_form" method="post" action="<?=$_SERVER['PHP_SELF']?>" target="form_receiver" style="width:500px; margin:0 auto;">
<input type="hidden" name="g_job" value="<?=$g_job?>" />
<input type="hidden" name="g_subjob" value="insert" />

	<table class="form2">
	<caption>게시판 등록</caption>
	<col width="75" /><col width="125" /><col width="75" /><col width="150" /><col width="75" />
	<tr>
		<th>아이디</th>
		<td><input type="text" name="ebcf_id" class="full required" style="ime-mode:disabled" maxlength="16" title="아이디를 입력하세요.(소문자 or 숫자)" /></td>
		<th>게시판명</th>
		<td><input type="text" name="ebcf_pname" class="full required" title="게시판명을 입력하세요." /></td>
		<td><input type="submit" value="추가" class="full_button" /></td>
	</tr>
	</table>

	<div id="lay_error_container2" class="error_container">
		<ol>
			<li>에러 메세지!!</li>
		</ol>
	</div>

</form>
<!-- 게시판 등록 ▲▲▲ -->